// 递归

// 打印 0-10

let result = [1,2,3,4]
function fn (num) {
  if (num == result.length) {return}
  console.log(num) // 0 1 2 3 
  num++
  fn(num)
}
fn(0)

// result [1,2,3,4]  0123   